package com.xmut.mall.product.feign;

import com.xmut.mall.product.to.es.ProductESTo;
import com.xmut.mall.product.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("mall-search")
public interface SearchFeignService {

    // 上架商品
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<ProductESTo> skuEsModels);

    @PostMapping("/search/save/productOFF")
    R productOFF(@RequestBody List<Long> skuIds);
}
